package rak.r91.dao;

import java.util.List;

import rak.r91.data.Item;

public interface ItemDao {
	/**
	 * 
	 * @param itemTypeID item type foreign key
	 * @return list of items 
	 */
	public List<Item> getItems(int itemTypeID);
	/**Inserts new item into item tabel and returns its itemID value
	 * 
	 * @param item new item
 	 * @return inserted itemID
	 */
	public int addItem(Item item);
	/**
	 * 
	 * @return last inserted item primary key
	 */
	public int lastInsertItemID();
	/**Inisializes all Item values including Unit type. 
	 * 
	 * @param itemID
	 * @return 
	 */
	public Item getItem(int itemID);
	public int updateItem(Item item);
}
